package org.jypj.dev.model;

import com.google.gson.Gson;

/**
 * 字典键值表
 * 
 * @author chenyu
 */
public class CodeData implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private String id; // 主键
	private String codeId; // 代号ID
	private String itemValue; // 字典键值
	private String itemText; // 字典显示的值
	private int sortOrder; // 排序
	private String describtion; // 描述

	private String isCheck = "false";// 编辑工序时使用

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCodeId() {
		return this.codeId;
	}

	public void setCodeId(String codeId) {
		this.codeId = codeId;
	}

	public String getItemValue() {
		return this.itemValue;
	}

	public void setItemValue(String itemValue) {
		this.itemValue = itemValue;
	}

	public String getItemText() {
		return this.itemText;
	}

	public void setItemText(String itemText) {
		this.itemText = itemText;
	}

	public int getSortOrder() {
		return sortOrder;
	}

	public void setSortOrder(int sortOrder) {
		this.sortOrder = sortOrder;
	}

	public String getDescribtion() {
		return this.describtion;
	}

	public void setDescribtion(String describtion) {
		this.describtion = describtion;
	}

	public String getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(String isCheck) {
		this.isCheck = isCheck;
	}

	@Override
	public String toString() {
		Gson gson = new Gson();
		return gson.toJson(this);
	}

}